package com.dongnam.quanly.common.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;

import com.dongnam.quanly.common.model.enumtype.GioiTinh;

@Entity
@Table(name = "NhanVien")
public class NhanVien extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "MaNhanVien", length = 100)
	private String maNhanVien;

	@Column(name = "HoTen", length = 200)
	private String hoTen;

	@Column(name = "GioiTinh", length = 100)
	@Enumerated(EnumType.STRING)
	private GioiTinh gioiTinh;

	@Column(name = "NgaySinh")
	private Date ngaySinh;

	@Column(name = "MaSoThue", length = 100)
	private String maSoThue;

	@Column(name = "MaPhongBan")
	private String phongBan;

	@Column(name = "ChucVu", length = 100)
	private String chucVu;

	@Column(name = "SoCMND", length = 100)
	private String soCMND;

	@Column(name = "NoiCapCMND", length = 100)
	private String noiCapCMND;

	@Column(name = "NgayCapCMND", length = 100)
	private Date ngayCapCMND;

	@Column(name = "HeSoLuong", length = 100)
	private String heSoLuong;

	@Column(name = "GiamTruGiaCanh")
	private Double giamTruGiaCanh;

	@Column(name = "DiaChi", length = 200)
	private String diaChi;

	@Column(name = "DTCoQuan", length = 100)
	private String dTCoQuan;

	@Column(name = "DTNhaRieng", length = 100)
	private String dTNhaRieng;

	@Column(name = "DTDiDong", length = 100)
	private String dTDiDong;

	@Column(name = "Email", length = 100)
	private String email;

	@Column(name = "Trangthai", length = 100)
	private String trangthai;

	public NhanVien() {
		// TODO Auto-generated constructor stub
	}

	public void fillNhanVien(NhanVien nhanvien) {

		this.maNhanVien = nhanvien.maNhanVien;
		this.hoTen = nhanvien.hoTen;
		this.gioiTinh = nhanvien.gioiTinh;
		this.ngaySinh = nhanvien.ngaySinh;
		this.maSoThue = nhanvien.maSoThue;
		this.phongBan = nhanvien.phongBan;
		this.chucVu = nhanvien.chucVu;
		this.soCMND = nhanvien.soCMND;
		this.noiCapCMND = nhanvien.noiCapCMND;
		this.ngayCapCMND = nhanvien.ngayCapCMND;
		this.heSoLuong = nhanvien.heSoLuong;
		this.giamTruGiaCanh = nhanvien.giamTruGiaCanh;
		this.diaChi = nhanvien.diaChi;
		this.dTCoQuan = nhanvien.dTCoQuan;
		this.dTNhaRieng = nhanvien.dTNhaRieng;
		this.dTDiDong = nhanvien.dTDiDong;
		this.email = nhanvien.email;
		this.trangthai = nhanvien.trangthai;
	}

	public String getMaNhanVien() {
		return maNhanVien;
	}

	public void setMaNhanVien(String maNhanVien) {
		this.maNhanVien = maNhanVien;
	}

	public String getHoTen() {
		return hoTen;
	}

	public void setHoTen(String hoTen) {
		this.hoTen = hoTen;
	}

	public GioiTinh getGioiTinh() {
		return gioiTinh;
	}

	public void setGioiTinh(GioiTinh gioiTinh) {
		this.gioiTinh = gioiTinh;
	}

	public Date getNgaySinh() {
		return ngaySinh;
	}

	public void setNgaySinh(Date ngaySinh) {
		this.ngaySinh = ngaySinh;
	}

	public String getMaSoThue() {
		return maSoThue;
	}

	public void setMaSoThue(String maSoThue) {
		this.maSoThue = maSoThue;
	}

	public String getChucVu() {
		return chucVu;
	}

	public void setChucVu(String chucVu) {
		this.chucVu = chucVu;
	}

	public String getSoCMND() {
		return soCMND;
	}

	public void setSoCMND(String soCMND) {
		this.soCMND = soCMND;
	}

	public String getNoiCapCMND() {
		return noiCapCMND;
	}

	public void setNoiCapCMND(String noiCapCMND) {
		this.noiCapCMND = noiCapCMND;
	}

	public Date getNgayCapCMND() {
		return ngayCapCMND;
	}

	public void setNgayCapCMND(Date ngayCapCMND) {
		this.ngayCapCMND = ngayCapCMND;
	}

	public String getHeSoLuong() {
		return heSoLuong;
	}

	public void setHeSoLuong(String heSoLuong) {
		this.heSoLuong = heSoLuong;
	}

	public Double getGiamTruGiaCanh() {
		return giamTruGiaCanh;
	}

	public void setGiamTruGiaCanh(Double giamTruGiaCanh) {
		this.giamTruGiaCanh = giamTruGiaCanh;
	}

	public String getDiaChi() {
		return diaChi;
	}

	public void setDiaChi(String diaChi) {
		this.diaChi = diaChi;
	}

	public String getdTCoQuan() {
		return dTCoQuan;
	}

	public void setdTCoQuan(String dTCoQuan) {
		this.dTCoQuan = dTCoQuan;
	}

	public String getdTNhaRieng() {
		return dTNhaRieng;
	}

	public void setdTNhaRieng(String dTNhaRieng) {
		this.dTNhaRieng = dTNhaRieng;
	}

	public String getdTDiDong() {
		return dTDiDong;
	}

	public void setdTDiDong(String dTDiDong) {
		this.dTDiDong = dTDiDong;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getTrangthai() {
		return trangthai;
	}

	public void setTrangthai(String trangthai) {
		this.trangthai = trangthai;
	}

	public String getPhongBan() {
		return phongBan;
	}

	public void setPhongBan(String phongBan) {
		this.phongBan = phongBan;
	}

}
